/*******************************************************************************
 * Copyright (c) 2019 Contributors to the Eclipse Foundation
 *
 * See the NOTICE file(s) distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0, or the Apache Software License 2.0
 * which is available at https://www.apache.org/licenses/LICENSE-2.0.
 *
 * SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
 *******************************************************************************/

.live-modeling-sidebar-root {
    width: 60%;
    position: fixed;
    bottom: 0;
    z-index: 55;
    display: flex;
    flex-direction: column;
    height: 33vh;
    max-height: 30%;
    left: 50%;
    transform: translate(-50%, 0%);
    margin: 0 auto;
}

#toggleButton {
    height: 35px;
    box-shadow: initial;
    background-color: #4a4a4f;
    border: 1px solid #4a4a4f;
    min-width: 300px;
    color: white;
    border-radius: 0 1px 1px 0;
    font-size: small;
}

#toggleButton:hover {
    background-color: #737378;
}

.live-modeling-sidebar-content {
    height: 25%;
    position: relative;
    flex-grow: 1;
    min-width: 300px;
    background-color: #353537;
    box-sizing: border-box;
    flex-direction: row;
}

.live-modeling-sidebar-page {
    width: 100%;
    height: 100%;
    text-align: center;
    color: white;
    font-size: small;
}

.live-modeling-sidebar-page.start-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.live-modeling-sidebar-page.live-page {
    display: flex;
    flex-direction: row;
}

.live-modeling-sidebar-info-panel {
    display: flex;
    flex-direction: column;
    padding: 0.5em;
}

.warning-changes {
    text-align: left;
    padding: 0.5em;
    background-color: #ffbf00;
}

.state-information {
    border-radius: 0.25em;
    font-weight: bold;
    font-size: smaller;
    color: white;
}

.btn-live-modeling {
    flex: 1 1 0px;
    background-color: #353537;
    border: 1px solid #007bff;
    color: #007bff;
    letter-spacing: 0.05em;
    padding: 0.75em;
    border-radius: 0.25em;
    font-weight: bold;
    font-size: x-small;
}

.btn-live-modeling:hover {
    cursor: pointer;
    color: white;
    background-color: #007bff;
}

.btn-live-modeling:active {
    cursor: pointer;
    color: white;
    background-color: #233c4f;
}

.btn-live-modeling-deploy {
    border: 1px solid #28a745;
    color: #28a745;
}

.btn-live-modeling-deploy:hover {
    background-color: #28a745;
}

.btn-live-modeling-deploy:active {
    background-color: #1e7e34;
}

.btn-live-modeling-terminate {
    border: 1px solid #dc3545;
    color: #dc3545;
}

.btn-live-modeling-terminate:hover {
    background-color: #dc3545;
}

.btn-live-modeling-terminate:active {
    background-color: #bd2130;
}

.btn-live-modeling:disabled,
.btn-live-modeling[disabled] {
    border: 1px solid #404144;
    background-color: #404144;
    color: #7a8387;
    cursor: not-allowed;
}

.btn-footer-live-modeling {
    border: none;
    border-top: 1px solid #4a4a4f;
    color: white;
}

accordion {
    border-top: 1px solid rgba(0, 0, 0, 0.125);
}

accordion-group {
    font-size: x-small;
    text-align: start;
}

::ng-deep .card.customClass {
    background-color: transparent;
    border-radius: 0;
    border: none;
}

::ng-deep .card.customClass .card-header {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

::ng-deep .card.customClass .card-header:hover {
    background-color: #495057;
    background-clip: border-box;
}

::ng-deep .card.customClass .card-body {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.dropdown-toggle {
    width: 100%;
}

.dropdown-menu {
    width: 100%;
    text-align: right;
}

td {
    cursor: text;
}

.dropdown-item {
    cursor: pointer;
}

.disable-icon {
    pointer-events: none;
    color: grey;
}

.wrapper {
    display: flex;
    align-items: center;
}

.wrapper span {
    flex: 1;
}
